#ifndef KEY_MANAGER_H
#define KEY_MANAGER_H
#include <SDL.h>

enum KeyType {
	KEY_W = 0,
	KEY_S, 
	KEY_A,
	KEY_D,
	KEY_UP,
	KEY_DOWN,
	KEY_LEFT,
	KEY_RIGHT,
	KEY_P,
	KEY_Q,
	KEY_COUNT
};

class KeyManager
{
	static KeyManager* m_Self;
	bool m_Keys[KEY_COUNT];
	KeyManager(void);

public:
	static KeyManager* get();
	~KeyManager(void);

	void keyPressed(SDLKey key);
	void keyReleased(SDLKey key);

	bool isKeyDown(KeyType key);
};

#endif